package demo.android.com.mvpdemo.mvp3;

import demo.android.com.mvpdemo.mvp3.base.BaseView;
import rx.Observable;

/**
 * Created by Vya on 2018/1/11 0011.
 * Fragment 协议层
 */

public class FragmentContract {
    // user View层
    public interface  UserInfoView extends BaseView {
        void onLoading();
        void onError();
        void onSucceed(String userInfo);
    }

    // user presenter层
    public interface FragmentPresenter{
            void show (String str);
    }

    // Model层定义接口，外部只需要关系Model返回的数据，不需要关系内部细节，如：是否使用缓存
    public  interface  UserInfoModel{

        Observable<String> setShow(String str);
    }
}
